package tech.wetech.admin3.util;

import lombok.Data;
public class CustomResponse {
  @Data
  public static class r1<T> {
    private String msg;
    private boolean success;
    private T data;

    public r1(String msg, boolean success, T data) {
      this.msg = msg;
      this.success = success;
      this.data = data;
    }
  }

  @Data
  public static class r2<T>{
    private String msg;
    private int code;
    private T data;

    public r2(String msg, int code,T data){
      this.msg = msg;
      this.code = code;
      this.data = data;
    }
  }
}

